package com.yyh.photo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yyh.photo.domain.CommodityDomain;
import com.yyh.photo.entity.CommodityEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 *  mapper 接口
 * 
 * @author jxjk.safe

 * @date 2023-06-07 17:15:10
 */
@Mapper
public interface CommodityMapper extends BaseMapper<CommodityEntity> {
    /**
     * 分页查询
     * @param page
     * @param commodityDomain
     * @return
     */
    List<CommodityDomain> pageQuery(Page<CommodityDomain> page,@Param("commodityDomain") CommodityDomain commodityDomain);
    List<CommodityDomain> getList(@Param("commodityDomain") CommodityDomain commodityDomain);

}
